package com.xz.log.slf4j.logging.sample;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by fingal on 2018/7/16.
 */
public class Slf4jSample {

    private static final Logger logger = LoggerFactory.getLogger(Slf4jSample.class);

    private static final Slf4jSample INSTANCE = new Slf4jSample();

    private Slf4jSample() {}

    public static Slf4jSample getInstance() {
        return INSTANCE;
    }

    public void log() {
        logger.trace("this is trace log...slf4j");

        logger.debug("this is debug log...slf4j");

        logger.info("this is info log...slf4j");

        logger.warn("this is warn log...slf4j");

        logger.error("this is error log...slf4j");
    }
}
